package com.xbongbong.pro.enums.teammembers.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author: 汪腾伟
 * @date: Created in 2021/12/15 15:21
 * @description： 协同人表单权限枚举
 */
@Getter
public enum CoUserPermissionEnum {
    /**
     * 协同人可编辑
     */
    EDIT(1, "enum.coUserPermission.value.edit"),
    /**
     * 协同人可读
     */
    READ(0, "enum.coUserPermission.value.read"),;

    CoUserPermissionEnum(Integer permissionValue, String value) {
        this.permissionValue = permissionValue;
        this.value = value;
    }

    private Integer permissionValue;

    private String value;

    public String getValue() {
        return I18nMessageUtil.getMessage(value);
    }

}
